package com.training.food.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.training.food.Mapper.FarmMapper;
import com.training.food.pojo.Farm;
import com.training.food.pojo.Slaughter;
import com.training.food.service.FarmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FarmServiceImpl extends ServiceImpl<FarmMapper, Farm> implements FarmService {
    @Autowired
    FarmMapper farmMapper;
    @Override
    public List<Farm> lists(List<Slaughter> Slaughters) {
        return farmMapper.lists(Slaughters);
    }

    @Override
    public List<Farm> getAll() {
        return farmMapper.getAll();
    }
}
